# -*- coding: utf-8 -*-

class student:
    def __init__(self,name):
        self.name = name
        self.courses = []
        
    def check_courses(self):
        print('-------查看所有课程--------')
        for course in course_list:
            course.show()
            
    def choose_course(self):
        print('--------选课-------')
        while True:
            course = input('请选择课程：(N退出)')
            if course == 'N':
                break
            self.courses.append(course)
            
    def check_choose_course(self):
        print('------已选择课程----------')
        for course in course_list:
            course.show()
    
    def show(self):
        print(self.name,end=':')
        for cours in self.course:
            print(cours,end=',')
            print()
            
    def exit_(self):
        exit()